package com.diycode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.diycode.utils.Entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author diycode
 * @since 2024-04-17
 */
public class Orders extends Entity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer orderID;

    private Integer ticketID;

    private Integer journeyID;

    private String fullName;

    private String iDNumber;

    private String phone;

    private BigDecimal totalPrice;

    private String status;

    private Integer userId;

    private Date orderDate;

    @TableField(exist = false)
    private String trainNumber;
    @TableField(exist = false)
    private String startStation;
    @TableField(exist = false)
    private String departureTime;
    @TableField(exist = false)
    private String userName;

    public Integer getOrderID() {
        return orderID;
    }

    public void setOrderID(Integer orderID) {
        this.orderID = orderID;
    }

    public Integer getTicketID() {
        return ticketID;
    }

    public void setTicketID(Integer ticketID) {
        this.ticketID = ticketID;
    }

    public Integer getJourneyID() {
        return journeyID;
    }

    public void setJourneyID(Integer journeyID) {
        this.journeyID = journeyID;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getiDNumber() {
        return iDNumber;
    }

    public void setiDNumber(String iDNumber) {
        this.iDNumber = iDNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderID = " + orderID +
                ", ticketID = " + ticketID +
                ", journeyID = " + journeyID +
                ", fullName = " + fullName +
                ", iDNumber = " + iDNumber +
                ", phone = " + phone +
                ", totalPrice = " + totalPrice +
                ", status = " + status +
                ", userId = " + userId +
                ", orderDate = " + orderDate +
                "}";
    }
}
